home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 August
/
Macworld (1999-08).dmg
/
Shareware World
/
Utilities
/
Disk & File
/
Odd Jobs 1.3
/
Odd Jobs
/
Odd Jobs.rsrc
/
STR#_1003.txt
< prev
next >
Wrap
Text File
|
1999-05-19
|
4KB
|
185 lines
For examples of attribute patterns see the Attributes help.
are not special inside [...]; only "]", "-" and "\" need a "\" prefix.
Matches any name containing a meta character. Most meta characters
*[<>[\]()|#!?*\-\\]*
zeros are necessary to avoid ambiguity (\90 would match "Z").
Matches any name containing a tab followed by a zero. Note that leading
*\0090*
names containing invisible characters (control characters and delete).
This pattern is used by the Show Weird Names joblet to find file/folder
*[\0-\31\127]*
to match an empty string.
in ".ps" or ".eps" or ".epsf". Note that nesting is allowed, and it is possible
This pattern is used by the Send PS joblet to match file names that end
*.(ps|eps(|f))
Matches names with at least 20 characters but no spaces.
[! ]<20->
Matches names containing only letters and hyphens.
[a-z\-]<1->
More complicated examples:
Only useful in Change Location; see that job's help item.
later use; eg. *.(log)#1. Up to 10 strings can be saved (#0..#9).
#d Only special immediately after (...) to save the matching string for
(...) Match a subpattern; eg. *.(abc|x?z|m*m).
| Means "or". For matching alternative patterns; eg. ab*|xy*.
or inside <...> to separate minimum and maximum counts; eg. <2-5>.
- Only special inside [...] to indicate a character range; eg. [a-z],
Note that * is equivalent to ?<->.
maximum count is missing then infinity is assumed.
If the minimum count is missing then 0 is assumed, and if the
This can be a fixed count like <3>, or a variable count like <3-6>.
<...> Specifies a repeat count for the preceding pattern element.
immediately after [.
! Means "not". Only special if it's the first character of a pattern or
[!...] Matches any character NOT in the given list; eg. [!aeiou].
[...] Matches any character in the given list; eg. [abc].
Handy for invisible characters; eg. \9=tab \13=return \127=delete.
The number can have up to 3 digits and any value from 0 to 255.
\ddd Matches the character represented by the given number.
in case you need to match a meta character; eg. \* \? \[ \< \\.
\c Matches the character c (any non-digit). The \ prefix is useful
? Matches any single character.
* Matches zero or more characters.
The above examples illustrate most of the special meta characters:
*\13 - match names ending with a return
*\9* - match names containing a tab
*\0* - match names containing a null
*\\* - match names containing "\"
*\** - match names containing "*"
[!a-z]<1-> - match names containing no letters
[a-z]<1-> - match names containing only letters
*[0-9] - match names ending with a digit
[a-z]* - match names starting with a letter
*[xyz]* - match names containing any character in the given list
?<-10> - match names with at most 10 characters
?<10-> - match names with at least 10 characters
?<10-20> - match names with 10 to 20 characters
?<10> - match names with exactly 10 characters
? - match names with just one character
*.??? - match names ending with a dot plus 3 more characters
*(aa|bb)* - match names containing "aa" or "bb"
a*|*z - match names starting with "a" or ending with "z"
*xyz - match names ending with "xyz"
!abc* - match names not starting with "abc"
abc* - match names starting with "abc"
*abc* - match names containing the string "abc"
*a* - match names containing the letter "a"
* - match every name (or type/creator/attribute)
match given patterns. Here are some simple examples:
to restrict processing to files whose names/types/creators/attributes
Odd Jobs has powerful pattern matching capabilities. Most jobs allow you